package com.baizhi.mapper;

import com.baizhi.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
    public List<Product> selectProducts(@Param("pageNum")Integer pageNum,
                                        @Param("pageSize")Integer pageSize);
    public Product selectProductById(Integer id);
    public void insertProduct(Product p);
    public void deleteProductById(Integer id);
    public void updateProduct(Product p);
}
